public abstract class Component
{
    private final String Name, brand;
    private final int price;

    protected Component(String Name, String brand, int price)
    {
        this.Name = Name;
        this.brand = brand;
        this.price = price;
    }

    abstract public String work();
    public String getName()
    {
        return this.Name;
    }
    public String getBrand()
    {
        return this.brand;
    }
    public int getPrice()
    {
        return this.price;
    }
    public abstract String getInfo();
}
